import HomePage from './ui/main/HomePage'
import LoginPage from './ui/main/LoginPage'
import ConversationPage from './ui/main/ConversationPage'
import FriendPage from './ui/main/FriendPage'
import GroupPage from './ui/main/GroupPage'
import SettingPage from './ui/main/setting/SettingPage'
import Single from './ui/voip/Single'
import Multi from './ui/voip/Multi'
import FileRecordPage from './ui/fileRecord/FileRecordPage'
import FavPage from './ui/main/fav/FavPage'
import WorkspacePage from './ui/workspace/WorkspacePage'
import Conference from './ui/voip/conference/Conference'
import CompositeMessagePage from './ui/main/CompositeMessagePage'
import MessageHistoryPage from './ui/main/MessageHistoryPage'
import ConversationMessageHistoryPage from './ui/main/ConversationMessageHistoryPage'
import ConversationFloatPage from './ui/main/ConversationFloatPage'
import ConferencePortalPage from './ui/voip/conference/ConferencePortalPage'
import MessagePage from './ui/main/MessagePage.vue'
import MultimediaPreviewPage from './ui/main/MultimediaPreviewPage.vue'
import SingleRemoteControl from './ui/voip/SingleRemoteControl.vue'
import AI from './ui/main/AI.vue'

const routers = [
  {
    path: '/',
    component: LoginPage,
  },
  {
    path: '/home',
    component: HomePage,
    children: [
      {
        path: '',
        name: 'conversation',
        component: ConversationPage,
      },
      {
        path: 'contact',
        name: 'contact',
        component: FriendPage,
      },
      {
        path: 'group',
        name: 'group',
        component: GroupPage,
      },
      {
        path: 'fav',
        name: 'fav',
        component: FavPage,
      },
      {
        name: 'h-wp',
        path: 'h-wp',
        component: WorkspacePage,
      },
      {
        path: 'setting',
        name: 'setting',
        component: SettingPage,
      },
      {
        path: 'conference',
        name: 'conference',
        component: ConferencePortalPage,
      },
      {
        path: 'ai',
        name: 'AI',
        component: AI,
      },
    ],
  },
  {
    name: 'voip-single',
    path: '/voip/single',
    component: Single,
  },
  {
    name: 'voip-single-rc',
    path: '/voip/single-rc',
    component: SingleRemoteControl,
  },
  {
    name: 'voip-multi',
    path: '/voip/multi',
    component: Multi,
  },
  {
    name: 'voip-conference',
    path: '/voip/conference',
    component: Conference,
  },
  {
    name: 'files',
    path: '/files',
    component: FileRecordPage,
  },
  {
    name: 'workspace',
    path: '/workspace',
    component: WorkspacePage,
  },
  {
    name: 'composite-message',
    path: '/composite',
    component: CompositeMessagePage,
  },
  {
    name: 'message',
    path: '/message',
    component: MessagePage,
  },
  {
    name: 'mmpreview',
    path: '/mmpreview',
    component: MultimediaPreviewPage,
  },
  {
    name: 'message-history',
    path: '/message-history',
    component: MessageHistoryPage,
  },
  {
    name: 'conversation-message-history',
    path: '/conversation-message-history',
    component: ConversationMessageHistoryPage,
  },
  {
    name: 'conversation-window',
    path: '/conversation-window',
    component: ConversationFloatPage,
  },
]
export default routers
